<?php
require_once('includes/Init.php');

$getFiles = new GetFiles();
$getFiles->getAllGaleriaFiles();
//require_once($documentRoot . 'includes/Register.php');
$register = new Register();
$register->registerUser();
//require_once($documentRoot . 'includes/Login.php');
$login = new Login();
$login->loginUser();
//require_once($documentRoot . 'includes/GetFiles.php');


/**
 * @todo what the fuck can only call after ahead stuff
 */
$at = Controller::getInstance()->at();

$at->assign('any','Looser');

if(isset($_REQUEST['action'])) {
    //$smarty->display($_REQUEST['action'] . '.tpl');
    $at->display('main_page.tpl');
} else {
    $at->display('main_page.tpl');
}
